package com.example.feign.user.fallback;

import com.example.common.api.ResultUtil;
import com.example.feign.user.GoodsFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class GoodsFeignFallback implements GoodsFeignClient {
    @Override
    public ResultUtil getGoodsById(Long id) {
        log.info("demo-goods服务器异常");
        return ResultUtil.failed("服务降级");
    }
}
